package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

import java.util.List;

/**
 * 采购计划表
 *
 * @author flyme
 * @date 2020-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_purchase")
@TableAlias("purchase")
@ApiModel(value="BusPurchase对象", description="采购计划表")
public class BusPurchase extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "purchaseId", type = IdType.ID_WORKER)
    private Long purchaseId;

    @ApiModelProperty(value = "采购计划编号")
    private String purchaseNo;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "操作用户")
    private Long userId;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @TableField(exist = false)
    private List<BusPurchaseDetails> details;

}
